package com.leslie.wukong.biz.product.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * ClassName: BusProduct
 * Package: com.leslie.wukong.biz.product.domain
 * Description:
 * @date: 2024/12/3 14:24
 * @author: itcoder
 */

@Schema
@Data
@TableName(value = "bus_product")
public class BusProduct implements Serializable {
    /**
     * 商品id
     */
    @TableId(value = "sku_id", type = IdType.NONE)
    @Schema(description = "商品id")
    private String skuId;

    /**
     * 商品名称
     */
    @TableField(value = "sku_name")
    @Schema(description = "商品名称")
    private String skuName;

    /**
     * 商品图片路径
     */
    @TableField(value = "img_path")
    @Schema(description = "商品图片路径")
    private String imgPath;

    /**
     * 价格
     */
    @TableField(value = "price")
    @Schema(description = "价格")
    private Double price;

    /**
     * 库存
     */
    @TableField(value = "stock")
    @Schema(description = "库存")
    private Integer stock;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    @Schema(description = "创建人")
    private String createBy;

    /**
     * 创建人名称
     */
    @TableField(value = "create_by_name")
    @Schema(description = "创建人名称")
    private String createByName;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @Schema(description = "更新时间")
    private Date updateTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    @Schema(description = "更新人")
    private String updateBy;

    /**
     * 更新人名称
     */
    @TableField(value = "update_by_name")
    @Schema(description = "更新人名称")
    private String updateByName;

    /**
     * 删除标志
     */
    @TableField(value = "del_flag")
    @Schema(description = "删除标志")
    private Short delFlag;

    /**
     * 删除时间
     */
    @TableField(value = "del_time")
    @Schema(description = "删除时间")
    private Date delTime;

    private static final long serialVersionUID = 1L;
}